package com.xsy.android.compose.wandroid.ui.main

import androidx.compose.runtime.mutableIntStateOf
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 *@author: xiaosy
 *时间: 2024/7/8
 *@Description: java类作用描述
 *@Version: 1.0
 **/
class HomeViewModel : ViewModel() {
    private val _position = MutableLiveData(0)
    val position: LiveData<Int> = _position
    fun onPositionChange(newPosition: Int) {
        _position.value = newPosition
    }
}